import { request } from './request';

export async function getAllExperimentTotalScore() {
  return request('/api/experimentTotalScore', {
    method: 'GET',
  })
}

export async function appendExperimentTotalScore(data: any) {
  return request('/api/experimentTotalScore', {
    method: 'POST',
    data,
  })
}

export async function updateExperimentTotalScore(data: any) {
  return request(`/api/experimentTotalScore/${data?.sId}/${data?.cId}`, {
    method: 'PUT',
    data,
  })
}

export async function destroyExperimentTotalScore(data: any) {
  return request(`/api/experimentTotalScore/${data?.sId}/${data?.cId}`, {
    method: 'DELETE',
  })
}

export default {
  getAllExperimentTotalScore,
  appendExperimentTotalScore,
  updateExperimentTotalScore,
  destroyExperimentTotalScore,
};
